/*
 * =====================================================================================
 *
 *       Filename:  stor_pointer_in_chararray.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  02/19/2000 02:55:01 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Chen Ken (Ken), zlchen.ken@gmail.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include <stdio.h>
#include <assert.h> 
#include <stdlib.h>
#include <string.h>

struct hash_node_t
{
	int arr[4];
};

int main(int argc, char* argv[])
{
	char resv[16];
	bzero(resv, sizeof(resv));
  void* pNode = (void*)malloc(sizeof(struct hash_node_t));

	*(void**)(&resv[4]) = pNode;
  void* pNode2 = *(void**)(&resv[4]);

  printf("%x : %x\n", pNode, pNode2);
  assert(pNode == pNode2);
}
